#ifndef __HAL_APP_FAULT_H__
#define __HAL_APP_FAULT_H__

#include <stdint.h>
#include "user_floor_ctrl.h"

#define FLOOR_DOOR_BASE     GPIOA
#define FLOOR_DOOR_CORE     RCU_GPIOA
#define FLOOR_DOOR_PIN      GPIO_PIN_12

#define FLOOR_BAND_BREAK_BASE   GPIOB
#define FLOOR_BAND_BREAK_CORE   RCU_GPIOB
#define FLOOR_BAND_BREAK_PIN    GPIO_PIN_6

#define FLOOR_TERM_RELAY_BASE   GPIOB
#define FLOOR_TERM_RELAY_CORE   RCU_GPIOB
#define FLOOR_TERM_RELAY_PIN    GPIO_PIN_4

/**
 * @brief fault APP 初始化
 ***/
void fault_init(void);

/**
 * @brief fault 检测
 * @return 返回fault 错误
 ***/
uint16_t fault_check(void);

#endif //__HAL_APP_FAULT_H__
